package com.easybuilder.common.exception;

import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * @author ZXS
 * @version 1.0
 * @description 类
 * @date 2023-5-5 10:52
 */
@Data
public class BaseException extends RuntimeException{

    private HttpStatus code;

    public BaseException(HttpStatus code,String message) {
        super(message);
        this.code = code;
    }

    public BaseException(HttpStatus code) {
        this.code = code;
    }
}
